package com.lxl.xm.service;

import com.lxl.xm.model.entity.AdContent;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lxl.xm.model.entity.AdContent;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxl.xm.model.entity.Advertiser;

import java.util.List;
import java.util.Map;

/**
* @author 86135
* @description 针对表【ad_content(广告内容表)】的数据库操作Service
* @createDate 2024-01-31 16:32:41
*/
public interface AdContentService extends IService<AdContent> {
    //查询
    Page<AdContent> getAdContentPage(int current, int size);
    //待审核广告查询
    Page<AdContent> getPendingApprovalAds(Page<AdContent>page);
    //新增广告
    boolean createAd(AdContent adContent);
    //历史记录查询
    Page<AdContent> getAdHistory(Page<AdContent>page,Long advertiserId);
    //获取指定日期范围内的关键词搜索统计
    List<Map<String,Object>>getKeywordSearchStatistics(String startDate, String endDate);

    public Integer getCount();

    Integer getCountOfApply();
}
